package com.lincoln;

import com.lincoln.framework.interfaces.BaseDeviceInfo;
import lombok.Data;

@Data
public class WebSocketConfig {
    public static WebSocketConfig webSocketConfig = null;

    public static void init(Class deviceInfo) {
        webSocketConfig = new WebSocketConfig(deviceInfo);
    }

    public static void setWebSocketConfig(WebSocketConfig webSocketConfig) {
        WebSocketConfig.webSocketConfig = webSocketConfig;
    }
    public static WebSocketConfig getWebSocketConfig() {
        return webSocketConfig;
    }

    /**
     * 当前使用的DeviceInfo类型
     */
    private Class<? extends BaseDeviceInfo> deviceInfo;

    WebSocketConfig(Class deviceInfo) {
        this.deviceInfo = deviceInfo;
    }
}
